package com.aidex.system.job;

import com.aidex.system.domain.Waybill;
import com.aidex.system.service.WaybillService;
import com.zengtengpeng.annotation.MQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jmy
 * @version 1.1
 * @date 2021-10-26 15:16
 */
@Service
public class WaybillHandleJob {

    @Autowired
    private WaybillService waybillService;

    /**
     * 运单处理
     *
     * @param waybill
     */
    @MQListener(name = "waybillQueueTask")
    public void handle(Waybill waybill) {
        waybillService.handleWaybill(waybill);
    }

}
